text/template/parse.item.pos (field)
26 uses
text/template/parse (current package)
lex.go#L17: pos Pos // The starting position, in bytes, of this item in the input string.
parse.go#L326: t.Root = t.newList(t.peek().pos)
parse.go#L379: list = t.newList(t.peekNonSpace().pos)
parse.go#L398: return t.newText(token.pos, token.val)
parse.go#L404: return t.newComment(token.pos, token.val)
parse.go#L427: return t.breakControl(token.pos, token.line)
parse.go#L429: return t.continueControl(token.pos, token.line)
parse.go#L446: return t.newAction(token.pos, token.line, t.pipeline("command", itemRightDelim))
parse.go#L484: pipe = t.newPipeline(token.pos, token.line, nil)
parse.go#L499: pipe.Decl = append(pipe.Decl, t.newVariable(v.pos, v.val))
parse.go#L503: pipe.Decl = append(pipe.Decl, t.newVariable(v.pos, v.val))
parse.go#L631: return t.newEnd(t.expect(itemRightDelim, "end").pos)
parse.go#L645: return t.newElse(peek.pos, peek.line)
parse.go#L648: return t.newElse(token.pos, token.line)
parse.go#L680: return t.newTemplate(token.pos, token.line, name, pipe)
parse.go#L699: return t.newTemplate(token.pos, token.line, name, pipe)
parse.go#L723: cmd := t.newCommand(t.peekNonSpace().pos)
parse.go#L761: chain := t.newChain(t.peek().pos, node)
parse.go#L802: return NewIdentifier(token.val).SetTree(t).SetPos(token.pos)
parse.go#L804: return t.newDot(token.pos)
parse.go#L806: return t.newNil(token.pos)
parse.go#L808: return t.useVar(token.pos, token.val)
parse.go#L810: return t.newField(token.pos, token.val)
parse.go#L812: return t.newBool(token.pos, token.val == "true")
parse.go#L814: number, err := t.newNumber(token.pos, token.val, token.typ)
parse.go#L831: return t.newString(token.pos, token.val, s)